<%@page import="com.mmy.domain.plane.TPlaneAirport"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<script type="text/javascript" src="js/jsp/back/planebase/planeAirportIndex.js"></script>
<title>机场信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
			<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<div id="menu-back">
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
	<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1><label>机场信息管理</label></h1>
							</div>	
							
						 </div >
					</div>
	</header>
	<section class="container">
	<nav class="breadcrumb" >
						
				<a href="backplaneorgindex" >航空公司</a> | 
				<a href="backplaneairportindex" >机场信息</a> | 
				 <a href="backplanebaseindex" >航班信息</a>
						<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3></hr>
					</nav>

			<div class="information">
				
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>修改机场信息
						</h4>
				<div  class="input-container">
				<form action="backsaveupdateplaneairport" method="post" >
				<table class="info-table" >
					
				<tr>
				<th><label for="planeAirportName">机场名称</label><span class="mustWrite">*</span></th>
					<td>
						<input type="hidden" name="AirportID"  value="${dbPlaneAirport.getAirportID()}" >
						<input type="text" name="AirportName" id="planeAirportName" value="${dbPlaneAirport.getAirportName()}" maxlength="64" required/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
				<th><label for="planeAirportZoneID">所在区域</label><span class="mustWrite">*</span></th>
					
				<c:choose>
					<c:when test="${dbPlaneAirport.getZoneID()<900000 }">
			
					<td>
							<select class="input-select-vlign " id="PlaneAirportZoneID" name="Province" emptyOption="false"  onchange="changeSelect(this,'getLevel4','level3','City')"  required>
					
					<c:forEach var="lstZoneProvince" items="${lstZoneProvince}">
						<option value="${lstZoneProvince.getZoneID()}" <c:if test="${strProvinceID==lstZoneProvince.getZoneID()}"> selected="selected"</c:if>>${lstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class='input-select-vlign  City' name="ZoneID" emptyOption="false"   required>
					<c:forEach var="lstZoneCity" items="${lstZoneCity}">
						<option value="${lstZoneCity.getZoneID()}" <c:if test="${dbPlaneAirport.getZoneID()==lstZoneCity.getZoneID()}"> selected="selected"</c:if>>${lstZoneCity.getZoneName()}</option>
						</c:forEach>
						</select> 	
					</td>
				</c:when>
					<c:otherwise>
					<td>
							<select class="input-select-vlign " id="PlaneAirportZoneID" name="Continent" emptyOption="false"  onchange="changeSelect(this,'getLevel2','level1','Country')"  required>
				
					<c:forEach var="lstZoneContinent" items="${lstZoneContinent}">
						<option value="${lstZoneContinent.getZoneID()}" <c:if test="${strContinentID==lstZoneContinent.getZoneID()}"> selected="selected"</c:if>>${lstZoneContinent.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class='input-select-vlign  Country' name="ZoneID" emptyOption="false"   required>
					<c:forEach var="lstZoneCountry" items="${lstZoneCountry}">
						<option value="${lstZoneCountry.getZoneID()}" <c:if test="${dbPlaneAirport.getZoneID()==lstZoneCountry.getZoneID()}"> selected="selected"</c:if>>${lstZoneCountry.getZoneName()}</option>
						</c:forEach>
						</select>
							
					</td>
				</c:otherwise>
			</c:choose>
				</tr>
				<tr>
					<th><label for="planeAirportMemo">备注</label></th>
					<td colspan="3">
						<textarea name="Memo" maxlength="256"  id="planeAirportMemo" >${tPlaneAirport.getMemo()}</textarea>
					</td>
				</tr>	
					
				</table>
				<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 
				
				</form>			
							
				</div>
				
			</div>
			</section>
			</article>
			</main>
			</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<!-- Main Slider -->
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>